<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8">
	<link href="../Public/css/base.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="../Public/js/ckeditor/ckeditor.js"></script>
	<script type="text/javascript" src="../Public/js/ckeditor/config.js"></script>

</head>
<body>
	<form method="post" action="__ACTION__" name="article" <notempty name="attachment">enctype="multipart/form-data"</notempty>>
	<notempty name="vo"><input type="hidden" value="{$vo.id}" name="id" /></notempty>
<table width="800">
<tr>
	<td class="bline" height="40" colspan="4">
		<table  cellspacing="0" cellpadding="0" border="0">
		<tr>
			<td>&nbsp;标题：</td>
			<td>
				<input id="title" type="text" style="width:160px" value="{$vo.title}" name="title">
			</td>

<!-- 在广告信息中的最新仓储信息中判断是否输出信息类型输入框-->

			<notempty name="storageinfo_type">
			<td width="90">&nbsp;信息类型：</td>

<!--没有自定义类型需要用户手动输入信息类型-->

			<td>
				<empty name = "article_types">
						<input id="infotype" type="text" style="width:160px" value="{$vo.type}" name="type"/>
					<else/>
						<select id="infotype" type="text" style="width:150px" name="type">
						<volist name="article_types" id="type">
						<if condition="$vo.type eq $type"><option value="{$type}" selected="selected"><else /><option value="{$type}"></if>{$type}</option>
						</volist>
					</select>
				</empty>
			</td>
			</notempty>
		</tr>
		<tr height='30px'>
			<td width="80">&nbsp;发布人：</td>
			<td width="200">
				<input id="title" type="text" style="width:160px" value="{$vo.publisher}" name="publisher">
			</td>
		</tr>
		<tr height='30px'>
			<td width="80">&nbsp;备注：</td>
			<td width="200">
				<input id="title" type="text" style="width:160px" value="{$vo.comments}" name="comments">
			</td>
			<notempty name="attachment">
			<td width="80">&nbsp;附件：</td>
			<td width="200">
				<input name="file" id="file" type="file" />
			</td>
			</notempty>
		</tr>
		</table>
	</td>
</tr>
<tr>
	<td class="bline2" height="28" bgcolor="#F9FCEF">
	<div style="float:left;line-height:28px;">
		<strong>文章内容：</strong>
	</div>
	<span style="line-height:28px">
		<input type="radio" name="state" value="1" <if condition="$vo.state eq 1">checked="checked"</if> />发布
		<input type="radio" name="state"value="0" <if condition="$vo.state eq 0">checked="checked"</if>/>不发布
	</span>
	<div style="float:right;;padding-right:8px">
		<input type="reset" value="重置" />
	</div>
	<div style="float:right;padding-right:8px">
		<input type="submit" value="保存" />
	</div>
	</td>
</tr>
</table>
<textarea id="TextArea1" cols="20" rows="2" class="ckeditor" name="contents">{$vo.contents}</textarea> 
<script type="text/javascript">
	CKEDITOR.config.height = 500;
	CKEDITOR.replace('TextArea1');
</script>
</form>
</body>
</html>
